package com.server.llh.llhserverwork.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;

public class LoaclReciver extends BroadcastReceiver {
	private Handler handler=null;
	public Handler getHandler() {
		return handler;
	}

	public void setHandler(Handler handler) {
		this.handler = handler;
	}

	public LoaclReciver() {
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		if(handler!=null){
			Message msg=new Message();
			msg.what=1000;
			msg.obj=intent.getSerializableExtra("cardId");
			handler.sendMessage(msg);
		}
	}

}
